﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AirWireUnread.aspx.cs" Inherits="QualityRPT.AirWireUnread" %>

<%@ Register TagPrefix="uc1" TagName="clheader" Src="include/cl_header.ascx" %>
<%@ Register TagPrefix="uc1" TagName="cltop" Src="include/cl_top.ascx" %>
<%@ Register TagPrefix="uc1" TagName="clleft" Src="include/cl_left.ascx" %>
<%@ Register TagPrefix="uc1" TagName="clfooter" Src="include/cl_footer.ascx" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ETC产品质量跟踪统计系统-天线设备漏读统计</title>
    <uc1:clheader ID="clheader" runat="server" />
</head>
<body>
    <uc1:cltop ID="cltop" runat="server" />
    <div class="container-fluid">
        <div class="row-fluid">
            <uc1:clleft ID="clleft" runat="server" />
            <!-- this is content start-->
            <form id="Form1" runat="server">
                <div class="box span10">
                    <div class="box-header well">
                        <h2><i class="icon-th"></i>天线设备漏读条件</h2>
                    </div>
                    <div class="box-content" style="float: left">
                        <a id="mul_sel_ck" href="#">点击查看已选择的查询条件</a>
                        <div class="success mul_hide" id="mulsel_callback"></div>
                        <input type="hidden" id="h_dev" runat="server" />
                        <div style="clear: both; height: 12px;"></div>
                        <asp:Label ID="Label1" runat="server" Text="起始时间："></asp:Label>
                        <asp:TextBox ID="textBoxStart" runat="server" class="datetimepicker"></asp:TextBox>
                        <asp:Label ID="Label2" runat="server" Text="结束时间："></asp:Label>
                        <asp:TextBox ID="textBoxEnd" runat="server" class="datetimepicker"></asp:TextBox>
                        <span>分组选择:</span>
                        <select id="sel_statTType" runat="server">
                            <option value="0">无选择</option>
                            <option value="1">按月</option>
                            <option value="2">按周</option>
                            <option value="3">按日</option>
                            <option value="4" selected="selected">按时</option>
                        </select>
                        <div style="clear: both; height: 12px;"></div>
                        <asp:Label ID="Label3" runat="server" Text="生产厂家："></asp:Label>
                        <select id="ajax_spin" multiple="true" class="mulselect" runat="server"></select>
                        <asp:Label ID="Label4" runat="server" Text="产品型号："></asp:Label>
                        <select id="ajax_scin" multiple="true" class="mulselect" runat="server"></select>
                        <asp:Label ID="Label6" runat="server" Text="查询路段："></asp:Label>
                        <select id="ajax_rdin" multiple="true" class="mulselect" runat="server"></select>
                        <div style="clear: both; height: 12px;"></div>
                        <asp:Label ID="Label7" runat="server" Text="查询广场："></asp:Label>
                        <select id="ajax_plazain" multiple="true" class="mulselect" runat="server"></select>
                        <asp:Label ID="Label8" runat="server" Text="查询车道："></asp:Label>
                        <select id="ajax_lanein" multiple="true" class="mulselect" runat="server"></select>
                        <asp:Button ID="ButtonQ" runat="server" Text="查询" CssClass="botton" OnClick="ButtonQ_Click" />
                        <asp:Button ID="ButtonExport" runat="server" Text="导出统计" CssClass="botton1" OnClick="ButtonExport_Click" />
                        <asp:Button ID="ButtonExportDetail" runat="server" Text="导出信息" CssClass="botton1" OnClick="ButtonExportDetail_Click" />
                        <div style="clear: both; height: 12px;"></div>
                    </div>
                </div>
            </form>
            <div class="box span10">
                <div class="box-header well">
                    <h2><i class="icon-th"></i>天线设备漏读统计-<span id="span_t_consume" runat="server"></span></h2>
                </div>
                <div class="box-content">
                    <ul class="nav nav-tabs" id="myTab">
                        <li class="active"><a href="#exSpec" id="tabStat">漏读统计结果</a></li>
                        <li><a href="#tcDetail" id="tabDetail">漏读交易明细</a></li>
                        <li><a href="#dataAnaly" id="tabAIR">漏读天线信息</a></li>
                    </ul>
                    <div id="myTabContent" class="tab-content">
                        <div class="tab-pane active" id="exSpec">
                            <table class="table table-bordered bootstrap-datatable datatable">
                                <thead>
                                    <tr>
                                        <asp:Repeater ID="repeater_title" runat="server">
                                            <ItemTemplate>
                                                <th><%# GetDataItem()%></th>
                                            </ItemTemplate>
                                        </asp:Repeater>
                                        <th>总交易量</th>
                                        <th>漏读量</th>
                                        <th>漏读率</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="repeater_data" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <%#GetAutoColumns(Container.ItemIndex) %>
                                                <td><%# DataBinder.Eval(Container.DataItem, "TRANSCOUNT")%></td>
                                                <td><%# DataBinder.Eval(Container.DataItem, "UNREAD_TRANSCOUNT")%></td>
                                                <td><%# QualityRpt.Utils.StringUtils.FormatRatio(DataBinder.Eval(Container.DataItem, "UNREAD_RATE")) %>%</td>

                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                            </table>
                        </div>
                        <div class="tab-pane" id="tcDetail">
                            <table id="tbDetail" class="table table-bordered bootstrap-datatable datatable">
                                <thead>
                                    <tr>
                                        <th>厂商名称</th>
                                        <th>天线型号</th>
                                        <th>广场</th>
                                        <th>车道</th>
                                        <th>标签号</th>
                                        <th>交易时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="repeater_Detail" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "AIRWIRE_SUPPLIER_NAME")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "AIRWIRE_SPEC_NAME")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "PLAZA_NAME")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "LANENO")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "OBUNO")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "TRANSOCCURTIME","{0:yyyy-MM-dd HH:mm:ss}")%></td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                            </table>
                            <div class="pager"><%=PagerHtml %></div>
                        </div>
                        <div class="tab-pane" id="dataAnaly">
                            <table id="tbdataAnaly" class="table table-bordered bootstrap-datatable datatable">
                                <thead>
                                    <tr>
                                        <th>厂商名称</th>
                                        <th>天线型号</th>
                                        <th>广场</th>
                                        <th>车道</th>
                                        <th>漏读交易次数</th>
                                        <th>总交易次数</th>
                                        <th>漏读率</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <asp:Repeater ID="repeater_airdata" runat="server">
                                        <ItemTemplate>
                                            <tr>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "AIRWIRE_SUPPLIER_NAME")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "AIRWIRE_SPEC_NAME")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "PLAZA_NAME")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "LANENO")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "UNREAD_TRANSCOUNT")%></td>
                                                <td class="center"><%# DataBinder.Eval(Container.DataItem, "SUM_TRANSCOUNT")%></td>
                                                <td class="center"><%# QualityRpt.Utils.StringUtils.FormatRatio(DataBinder.Eval(Container.DataItem, "UNREAD_RATE"))%>%</td>
                                            </tr>
                                        </ItemTemplate>
                                    </asp:Repeater>
                                </tbody>
                            </table>
                             <div class="pager"><%=PagerHtml2 %></div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- content end-->
    </div>
    <uc1:clfooter ID="clfooter" runat="server" />
</body>
</html>
